package com.yipinhouse.backstage.client;

import com.yipinhouse.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "shopQueryBackClient",name="backstage",path = "backstage")
public interface BackstageQueryClient {

    /**
     * 展示所有门店
     * @return
     */
    @GetMapping("listShop")
    public Result listShop();

    /**
     * 查看门店详情
     * @return
     */
    @GetMapping("checkShop")
    public Result checkShop(@RequestParam("shopId") Integer shopId);

}
